<?php
namespace App\Api\Transformers;


use App\ClubLessons;
use League\Fractal\TransformerAbstract;

/**
 * Class ClubLessonTransformer
 * @package App\Api\Transformers
 */
class ClubLessonTransformer extends TransformerAbstract
{

    /**
     * @param Club $club
     * @return array
     */
    public function transform(ClubLessons $clubLesson)
    {
        return [
            'lesson_id' => $clubLesson['id'],
            'club_id' => $clubLesson['club_id'],
            'lesson_name' => $clubLesson['lesson_name'],
            'lesson_intro' => $clubLesson['lesson_intro'],
            'lesson_price' => $clubLesson['lesson_price'],
            'lesson_star' > $clubLesson['lesson_star']
        ];
    }
}